package com.pigplay.demo.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.pigplay.demo.dao.TUserDao;
import com.pigplay.demo.model.TUser;

@Service(value = "userService")
public class TUserServiceImp implements TUserService {
	@Autowired
    private TUserDao tUserDao;
	
	@Override
	public void insertUser(TUser user) {
		tUserDao.insertUser(user);
	}

	@Override
	public List<TUser> selectUsers() {
		return tUserDao.selectUsers();
	}
}
